package com.jhhc.RHDB.Data.Pojo;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Objects;

//@JsonInclude(JsonInclude.Include.NON_NULL)
public class Data {
    /// 数据值
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String stnm;
    // 时间
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String tm;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Double value;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String stcd;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String distanceAlert;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Double zs;

    public Double getZs() {
        return zs;
    }

    public void setZs(Double zs) {
        this.zs = zs;
    }

    public Double getTwc() {
        return twc;
    }

    public void setTwc(Double twc) {
        this.twc = twc;
    }

    public Integer getHltdmk() {
        return hltdmk;
    }

    public void setHltdmk(Integer hltdmk) {
        this.hltdmk = hltdmk;
    }

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Double twc;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer hltdmk;
    /// 数据值
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer flag;

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getDistanceAlert() {
        return distanceAlert;
    }

    public void setDistanceAlert(String distanceAlert) {
        this.distanceAlert = distanceAlert;
    }

    public String getStcd() {
        return stcd;
    }



    public void setStcd(String stcd) {
        this.stcd = stcd;
    }




    public String getTM() {
        return tm;
    }





    public void setTM(String tM) {
        this.tm = tM;
    }

    public Data(String tM, Double value) {
        super();
        tm = tM;
        this.value = value;
    }

    public Data() {
    }


    public String getStnm() {
        return stnm;
    }

    public void setStnm(String stnm) {
        this.stnm = stnm;
    }

    public Double getValue() {
        return value;
    }

    public void setValue(Double value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "Data{" +
                "tm='" + tm + '\'' +
                ", zs=" + zs +
                ", twc=" + twc +
                ", value=" + value +
                ", hltdmk=" + hltdmk +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Data data = (Data) o;
        return Objects.equals(stnm, data.stnm) && Objects.equals(tm, data.tm) && Objects.equals(value, data.value) && Objects.equals(stcd, data.stcd) && Objects.equals(distanceAlert, data.distanceAlert) && Objects.equals(zs, data.zs) && Objects.equals(twc, data.twc) && Objects.equals(hltdmk, data.hltdmk);
    }

    @Override
    public int hashCode() {
        return Objects.hash(stnm, tm, value, stcd, distanceAlert, zs, twc, hltdmk);
    }
}
